home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Powervisor v1.10b disk1.adf / Source / BuggyProgram2.asm < prev    next >
Assembly Source File  |  1991-08-07  |  365b  |  34 lines

  1.     ;This is the second example file for debugging.
  2.  
  3.    addsym
  4.  
  5. StartProgram:
  6.         bsr        Long
  7.  
  8.         moveq        #0,d0
  9.         bsr        recur
  10.  
  11.         moveq        #0,d0
  12.         rts
  13.  
  14. Long:
  15.         moveq        #0,d0
  16.         moveq        #1,d1
  17.         moveq        #2,d2
  18.         moveq        #3,d3
  19.         moveq        #4,d4
  20.         moveq        #5,d5
  21.         moveq        #6,d6
  22.         moveq        #7,d7
  23.         rts
  24.  
  25. recur:
  26.         addq.l    #1,d0
  27.         cmp.l        #200,d0
  28.         bgt.s        theend
  29.         bsr        recur
  30. theend:
  31.         rts
  32.  
  33.       END
  34.